package com.hangzhou.xyj.net.request;

import com.hangzhou.xyj.net.request.base.BaseRequest;
import com.hangzhou.xyj.utils.constants.API;

/**
 * Created by yaohuix on 2016/2/22  15:37
 * <p/>
 * 说明：更新爱好 请求
 */
public class UpdateHobbyReq extends BaseRequest {

    public UpdateHobbyReq(int userId, String hobby) {
        setUserId(userId);
        setHobby(hobby);
    }

    private void setHobby(String hobby) {
        add("hobby", hobby);
    }

    private void setUserId(int userId) {
        add("userId", userId);
    }

    @Override
    public String getUrl() {
        return API.UPDATE_HOBBY;
    }
}
